package com.gkzf.ai.module.crm.dal.mysql.creditReport;

import com.gkzf.ai.framework.common.pojo.PageResult;
import com.gkzf.ai.framework.mybatis.core.mapper.BaseMapperX;
import com.gkzf.ai.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.gkzf.ai.module.crm.controller.admin.creditReport.vo.creditCardDetails.CreditReportCreditCardDetailsPageReqVO;
import com.gkzf.ai.module.crm.dal.dataobject.creditReport.CreditReportCreditCardDetailsDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * CRM 征信报告信用卡明细 Mapper
 *
 * @author 国科智飞
 */
@Mapper
public interface CreditReportCreditCardDetailsMapper extends BaseMapperX<CreditReportCreditCardDetailsDO> {

    default PageResult<CreditReportCreditCardDetailsDO> selectPage(CreditReportCreditCardDetailsPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<CreditReportCreditCardDetailsDO>()
                .eqIfPresent(CreditReportCreditCardDetailsDO::getCreditReportDetailsId, reqVO.getCreditReportDetailsId())
                .orderByDesc(CreditReportCreditCardDetailsDO::getId));
    }

}